home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / icolor.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  56 lines

  1. /* Copyright (C) 1994, 1996, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: icolor.h,v 1.2 2000/09/19 19:00:42 lpd Exp $ */
  20. /* Declarations for transfer function & similar cache remapping */
  21.  
  22. #ifndef icolor_INCLUDED
  23. #  define icolor_INCLUDED
  24.  
  25. /*
  26.  * Define the number of stack slots needed for zcolor_remap_one.
  27.  * The client is responsible for doing check_e/ostack or the equivalent
  28.  * before calling zcolor_remap_one.
  29.  */
  30. extern const int zcolor_remap_one_ostack;
  31. extern const int zcolor_remap_one_estack;
  32.  
  33. /*
  34.  * Schedule the sampling and reloading of a cache.  Note that if
  35.  * zcolor_remap_one recognize the procedure as being of a special form, it
  36.  * may not schedule anything, but it still returns o_push_estack.  (This is
  37.  * a change as of release 5.95; formerly, it returned 0 in this case.)
  38.  */
  39. int zcolor_remap_one(P5(i_ctx_t *, const ref *, gx_transfer_map *,
  40.             const gs_state *, op_proc_t));
  41.  
  42. /* Reload a cache with entries in [0..1] after sampling. */
  43. int zcolor_remap_one_finish(P1(i_ctx_t *));
  44.  
  45. /* Reload a cache with entries in [-1..1] after sampling. */
  46. int zcolor_remap_one_signed_finish(P1(i_ctx_t *));
  47.  
  48. /* Recompute the effective transfer functions and invalidate the current */
  49. /* color after cache reloading. */
  50. int zcolor_reset_transfer(P1(i_ctx_t *));
  51.  
  52. /* Invalidate the current color after cache reloading. */
  53. int zcolor_remap_color(P1(i_ctx_t *));
  54.  
  55. #endif /* icolor_INCLUDED */
  56.